package com.oazon.moco.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.moco.launcher.bean.MOCO_CONSTANTS;


public class McServiceMsg<T>{
	
	private int id;
	private String uuid="";
	
	private String name="";
	private String uri="";
	
	@JSONField(name = "secure_uri")
	private String secureUri="";
	
	@JSONField(name = "auth_type")
	private String authType="";
	
	@JSONField(name = "auth_params")
	private T authParams;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String getSecureUri() {
		return secureUri;
	}

	public void setSecureUri(String secureUri) {
		this.secureUri = secureUri;
	}

	public String getAuthType() {
		return authType;
	}

	public void setAuthType(String authType) {
		this.authType = authType;
	}

	public T getAuthParams() {
		return authParams;
	}

	public void setAuthParams(T authParams) {
		this.authParams = authParams;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getProvider() {
		return ProviderAdapt.name2provider(name);
	}
	
}
